home *** CD-ROM | disk | FTP | other *** search
- Path: erich.triumf.ca!bennett
- From: bennett@erich.triumf.ca (P.Bennett)
- Newsgroups: comp.lang.c
- Subject: Re: Complete Newbie Question
- Date: 3 Feb 1996 17:07 PST
- Organization: TRIUMF: Tri-University Meson Facility
- Distribution: world
- Message-ID: <3FEB199617073795@erich.triumf.ca>
- References: <4f0ibf$2pe@mars.dsu.edu>
- NNTP-Posting-Host: ftp.triumf.ca
- News-Software: VAX/VMS VNEWS 1.50
-
- In article <4f0ibf$2pe@mars.dsu.edu>, scotty@fpg.gcomm.com (Scotty) writes...
-
- >I'm just learning C, and for the life of me I can't find anywhere
- >how to make the printf statements print in the Upper left corner of the
- >screen, nor how to clear the screen. If you could help me, please do! ;)
-
- Any sort of "fancy" screen manipulation (anything other than printing where the
- cursor happens to be) is very much system- (and even compiler-)specific.
-
- for MS-DOS, with Borland and Microsoft compilers, you have to use functions
- declared in conio.h.
-
- for Borland compilers, use clrscr() to clear the screen, gotoxy() to position
- the cursor, and cprintf() or cputs() to output. Microscoft uses different
- names for clrscr() and gotoxy(), I think.
-
- For other systems (and even for MS-DOS) the "curses" library does this.
-
- >P.S. Please don't send me e-mail, my address doesn't work...
-
- Try to get your address fixed...
-
- Peter Bennett VE7CEI | Vessels shall be deemed to be in sight
- Internet: bennett@triumf.ca | of one another only when one can be
- Packet: ve7cei@ve7kit.#vanc.bc.ca | observed visually from the other
- TRIUMF, Vancouver, B.C., Canada | ColRegs 3(k)
- GPS and NMEA info and programs: ftp://sundae.triumf.ca/pub/peter/index.html
-
-
-
-
-